﻿var menu = $("#menu").find("div");

var menuHeight = menu.height();

function openMenu()
{
	menu.css("bottom", "-" + parseFloat(menuHeight - 19));
}

function closeMenu()
{
	menu.css("bottom", parseFloat(menuHeight - 19));
}

$(document).ready(function(){
	$("#menu").bind("mouseover", function(){
		$(this).find("button").addClass("active");
		openMenu();
	}).bind("mouseout", function(){
		$(this).find("button").removeClass("active");
		closeMenu();
	});
});